/*
 * PortalTile.h
 *
 *  Created on: 06/07/2011
 *      Author: Rafael
 */

#ifndef PORTALTILE_H_
#define PORTALTILE_H_

#include "Tile.h"
#include <string>
using namespace std;


class PortalTile : public Tile {
private:
	int *current;
	string nextMap;
	int *x; // new X
	int *y; //new Y
public:
	PortalTile(bool rigid, int x, int y, int w, int h);
	virtual ~PortalTile();

	void loadPortalTile(TileMap* tileMap, int layer, Rect rect);

	void onEnter(Model *model);
	void onInside(Model *model);
	void onLeave(Model *model);
};

#endif /* PORTALTILE_H_ */
